package com.ruoyi.shelves.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;


/**
 * 模块对象 mk
 *
 * @author tongshuai
 * @date 2021-12-02
 */
public class Mk extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增序列号ID */
    private String id;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 货架id */
    @Excel(name = "货架id")
    private Long hjid;

    /** 所在货架层数 */
    @Excel(name = "所在货架层数")
    private Long cs;

    /** 序号 */
    @Excel(name = "序号")
    private Long no;

    /** 模块显示内容 */
    @Excel(name = "模块显示内容")
    private String showtext;

    /** 模块物理地址 */
    @Excel(name = "模块物理地址")
    private Long addr;

    /** 称重模块地址（珠江用） */
    @Excel(name = "称重模块地址", readConverterExp = "珠=江用")
    private Long czaddr;

    /** 0  LCD屏 1 LCD屏+称重 */
    @Excel(name = "0  LCD屏 1 LCD屏+称重")
    private Long type;

    /** 单位重量 */
    @Excel(name = "单位重量")
    private Long dwweight;

    /** 称重偏差值 */
    @Excel(name = "称重偏差值")
    private Long pc;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setHjid(Long hjid)
    {
        this.hjid = hjid;
    }

    public Long getHjid()
    {
        return hjid;
    }
    public void setCs(Long cs)
    {
        this.cs = cs;
    }

    public Long getCs()
    {
        return cs;
    }
    public void setNo(Long no)
    {
        this.no = no;
    }

    public Long getNo()
    {
        return no;
    }
    public void setShowtext(String showtext)
    {
        this.showtext = showtext;
    }

    public String getShowtext()
    {
        return showtext;
    }
    public void setAddr(Long addr)
    {
        this.addr = addr;
    }

    public Long getAddr()
    {
        return addr;
    }
    public void setCzaddr(Long czaddr)
    {
        this.czaddr = czaddr;
    }

    public Long getCzaddr()
    {
        return czaddr;
    }
    public void setType(Long type)
    {
        this.type = type;
    }

    public Long getType()
    {
        return type;
    }
    public void setDwweight(Long dwweight)
    {
        this.dwweight = dwweight;
    }

    public Long getDwweight()
    {
        return dwweight;
    }
    public void setPc(Long pc)
    {
        this.pc = pc;
    }

    public Long getPc()
    {
        return pc;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("hjid", getHjid())
            .append("cs", getCs())
            .append("no", getNo())
            .append("showtext", getShowtext())
            .append("addr", getAddr())
            .append("czaddr", getCzaddr())
            .append("type", getType())
            .append("dwweight", getDwweight())
            .append("pc", getPc())
            .toString();
    }
}
